﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Main.aspx.cs" Inherits="Meeting.Web.Admin.Main" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>东莞市国土资源局会议管理系统</title>
    <script src="../Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        function CheckLogin() {
            var user = $("#txt_User").val();
            var pass = $("#txt_Pass").val();
            if (user == "" || pass == "") {
                alert('用户名或密码不能为空');
                return;
            }
            $.post("LoginOperation.ashx?method=IsLogin", { User: user, Pass: pass }, function (data) {
                if (data.success) {
                    window.location = "default.aspx?psnID=fangym&psnName=%E6%96%B9%E8%80%80%E9%93%AD&roleName=15fc40c:10eb18a7b71:2320;-50b6476d:13c5bfc1043:-7fee;15fc40c:10eb18a7b71:1711;-50b6476d:13c5bfc1043:-7fef&psnTitle=";
                }
                else {
                    alert(data.Message);
                }
            }, "json");
        }
    </script>
</head>
<body style="margin: 0px; text-align: center; background-image: url(../Images/login_bg.jpg);
    background-repeat: repeat-x; background-color: #000201; text-align: left;">
    <form id="form1" runat="server">
    <div style="margin: 0 auto; width: 1280px; background-image: url(../Images/login_bg_main.jpg);
        background-repeat: no-repeat; background-position: top center; height: 800px;
        overflow: hidden;">
        <div style="margin-left: 495px; margin-top: 313px; text-align: left; width: 280px;
            overflow: hidden;">
            <table cellpadding="0" cellspacing="0" style="width: 280px;">
                <tr>
                    <td>
                        <input type="text" id="txt_User" style="height: 34px; line-height: 34px; width: 264px;
                            border: none; background-color: transparent" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <input   type="password" id="txt_Pass" style="height: 34px; line-height: 34px; width: 259px;
                            margin-top: 31px; border: none; background-color: transparent" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <div style="margin-top: 30px; font-size: 12px;">
                            <%-- <input id="Checkbox1" type="checkbox" />记住密码</div>--%>
                            <div style="height: 20px;">
                            </div>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">
                        <div style="margin-top: 30px;">
                            <input id="btn_Ok" onclick="CheckLogin(); return false;" type="button" value="" style="background-image: url(../Images/login_btn.jpg);
                                width: 96px; border: none; height: 38px; background-color: transparent" />&nbsp;&nbsp;<input
                                    id="btn_Cancel" type="button" value="" onclick="window.close();" style="background-image: url(../Images/login_btn_cancel.jpg);
                                    width: 96px; border: none; height: 38px; background-color: transparent" />
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
